package org.lgiavedoni.android.franq.event.internal;

import java.util.Set;

import lombok.AllArgsConstructor;
import lombok.Data;

import org.lgiavedoni.android.franq.core.envent.Event;
import org.lgiavedoni.android.franq.service.config.ConfigService.ConfigKey;

@Data
@AllArgsConstructor
public class ConfigurationChangeEvent extends Event {

	private final Set<ConfigKey> keys;

	@Override
	public String toString() {
		return "ConfigurationChange";
	}
	
	public boolean containsAny(ConfigKey... ck){
		for(ConfigKey key:ck){
			if(keys.contains(key))
				return true;
		}
		return false;
	}

}
